Skip to main content

GET/advertising_eligibility

This method allows developers to check the seller eligibility status for eBay advertising programs.

Input

Resource URI

GET https://api.ebay.com/sell/account/v1/advertising_eligibility?

This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com root URI with api.sandbox.ebay.com

URI parameters

ParameterTypeDescription
program_typesstringA comma-separated list of eBay advertising programs for which eligibility status will be returned.

See the AdvertisingProgramEnum type for a list of supported values.

If no programs are specified, the results will be returned for all programs.

Occurrence: Optional

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.

HeaderTypeDescription
X-EBAY-C-MARKETPLACE-IDstringThe unique identifier of the eBay marketplace for which the seller eligibility status shall be checked. This header is required or the call will fail.

See the MarketplaceIdEnum type for the supported marketplace ID values.

Occurrence: Required

OAuth scope

This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope/sell.account

https://api.ebay.com/oauth/api_scope/sell.account.readonly

eBayUser

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
advertisingEligibilityarray of SellerEligibilityResponse

An array of response fields that define the seller eligibility for eBay advertising programs.

Occurrence: Always

advertisingEligibility.programTypeAdvertisingProgramEnum

The eBay advertising program for which a seller may be eligible.

Occurrence: Always

advertisingEligibility.reasonSellerIneligibleReasonEnum

The reason why a seller is ineligible for the specified eBay advertising program.

This field is only returned if the seller is ineligible for the eBay advertising program.

Occurrence: Conditional

advertisingEligibility.statusSellerEligibilityEnum

The seller eligibility status for the specified eBay advertising program.

Occurrence: Always

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
200Success
400Bad Request
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
35001API_ACCOUNTAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay developer support for assistance.
35002API_ACCOUNTAPPLICATIONInternal error. Please wait a few minutes and try the call again.
50114API_ACCOUNTREQUESTThe HTTP request header 'X-EBAY-C-MARKETPLACE-ID' is required.
50116API_ACCOUNTREQUESTInvalid program_type(s) {programTypes}.
50117API_ACCOUNTREQUESTInvalid marketplaceId in HTTP request header 'X-EBAY-C-MARKETPLACE-ID' {marketplaceId}.

Warnings

This call has no warnings.

Samples

New to making API calls? Please see Making a Call.

Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.

Sample 1: Check Seller Eligibility Status

This example retrieves seller eligibility details for program types within the specified eBay marketplace.

Input

The input for this sample is the eBay marketplace ID, which is passed in using the X-EBAY-C-MARKETPLACE-ID HTTP header. This call does not use a request payload.

GEThttps://api.ebay.com/sell/account/v1/advertising_eligibility

Output

If the call is successful, the seller eligibility details for the program types available in the specified marketplace are returned.

Sample 2: Check Seller Eligibility Status for Offsite Ads

This example retrieves seller eligibility details for the Offsite Ads program type within the specified eBay marketplace.

Input

This method requires you to specify the eBay marketplace ID using the X-EBAY-C-MARKETPLACE-ID HTTP header. In this sample, the program_types query parameter is also used. This parameter specifies that only eligibility details for the Offsite Ads program type will be returned.

This call does not use a request payload.

GEThttps://api.ebay.com/sell/account/v1/advertising_eligibility?program_types=OFFSITE_ADS

Output

If the call is successful, the seller eligibility details for the Offsite Ads program type within the specified marketplace are returned.